#!/usr/bin/python
# -*- coding:utf-8 -*-
# @author  : micah
# @time    :  
# @function: 
# @version :


import time


def foo():
    time.sleep(1)


# 定义一个匿名函数
now = lambda: time.time()

# 启动匿名函数并获取当前时间
start = now()

for i in range(5):
    foo()

print(f'同步程序所花费的时间为：{now() - start}')
